package com.powermgr.boringtest.utils;

import lombok.extern.log4j.Log4j2;

import java.util.List;

/**
 * IsTestUtils
 *
 * @author qiuxiangdong
 * @date 2023/6/12
 */
@Log4j2
public class TypeUtils {
    public static boolean IsActs(List<String> type) {
        return type.toString().contains("ACTS");
    }
    public static boolean IsActs(String type) {
        return type.contains("ACTS");
    }
    public static boolean IsHats(List<String> type) {
        return type.toString().contains("HATS");
    }
    public static boolean IsHats(String type) {
        return type.contains("HATS");
    }
    public static boolean IsDcts(List<String> type) {
        return type.toString().contains("DCTS");
    }
    public static boolean IsDcts(String type) {
        return type.contains("DCTS");
    }
    public static boolean IsXTS(List<String> type) {
        return type.toString().contains("ACTS")
                || type.toString().contains("HATS")
                || type.toString().contains("ACTS");
    }
    public static boolean IsXTS(String type) {
        return type.contains("ACTS")
                || type.contains("HATS")
                || type.contains("DCTS");
    }
    public static boolean IsUT(List<String> type) {
        return type.toString().contains("UT");
    }
    public static boolean IsUT(String type) {
        return type.contains("UT");
    }
    public static boolean IsMST(List<String> type) {
        return type.toString().contains("MST");
    }
    public static boolean IsMST(String type) {
        return type.contains("MST");
    }
    public static boolean IsFUZZ(List<String> type) {
        return type.toString().contains("FUZZ");
    }
    public static boolean IsFUZZ(String type) {
        return type.contains("FUZZ");
    }
    public static boolean IsST(List<String> type) {
        return type.toString().contains("ST") && !type.toString().contains("MST");
    }
    public static boolean IsST(String type) {
        return type.contains("ST") && !type.contains("MST");
    }
    public static boolean IsBenchmark(List<String> type) {
        return type.toString().contains("BENCHMARK");
    }
    public static boolean IsBenchmark(String type) {
        return type.contains("BENCHMARK");
    }
    public static boolean IsTDD(List<String> type) {
        return type.toString().contains("UT") || type.toString().contains("FUZZ")
                || type.toString().contains("ST") || type.toString().contains("BENCHMARK")
                || type.toString().contains("MT");
    }
    public static boolean IsTDD(String type) {
        return type.contains("UT") || type.contains("FUZZ")
                || type.contains("ST") || type.contains("BENCHMARK") || type.contains("MT");
    }
}
